<?php
require_once __DIR__ . '/vendor/autoload.php';

/*
//备份示例
try{
    $hp = new \Sevstudio\SevMysqlBackup\Helper([
        'host' => '127.0.0.1',
        'port' => 3306,
        'uid' => 'root',
        'pwd' => 'root',
        'dbname' => 'gaolb',
        'charset' => 'utf8',
        'prefix' => 'lyg_',
    ]);
    $data = $hp->Backup(__DIR__ , 'aaaa_');
    var_dump($data);
}catch(\PDOException $pdoex){
    //出错了
    echo $pdoex->getMessage();
}
*/

/*
//还原示例
try{
    $hp = new \Sevstudio\SevMysqlBackup\Helper([
        'host' => '127.0.0.1',
        'port' => 3306,
        'uid' => 'root',
        'pwd' => 'root',
        'dbname' => 'abc_com',
        'charset' => 'utf8',
        'prefix' => 'lyg_',
    ]);
    $data = $hp->Restore(__DIR__  . '/aaaa_67d1935d860f9.sql');
    var_dump($data);
}catch(\PDOException $pdoex){
    //出错了
    echo $pdoex->getMessage();
}
*/
